Optimal. Leaf size=117 \[ 2 b m n x-m x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (e+f x) \log \left (d (e+f x)^m\right )}{f}-\frac {b e n \log \left (-\frac {f x}{e}\right ) \log \left (d (e+f x)^m\right )}{f}+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-\frac {b e m n \text {Li}_2\left (1+\frac {f x}{e}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.381, Rules used = {2436, 2332,
2417, 2458, 45, 2393, 2354, 2438} \begin {gather*} -\frac {b e m n \text {PolyLog}\left (2,\frac {f x}{e}+1\right )}{f}+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-m x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (e+f x) \log \left (d (e+f x)^m\right )}{f}-\frac {b e n \log \left (-\frac {f x}{e}\right ) \log \left (d (e+f x)^m\right )}{f}+2 b m n x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2332
Rule 2354
Rule 2393
Rule 2417
Rule 2436
Rule 2438
Rule 2458
Rubi steps
\begin {align*} \int \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right ) \, dx &=-m x \left (a+b \log \left (c x^n\right )\right )+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-(b n) \int \left (-m+\frac {(e+f x) \log \left (d (e+f x)^m\right )}{f x}\right ) \, dx\\ &=b m n x-m x \left (a+b \log \left (c x^n\right )\right )+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-\frac {(b n) \int \frac {(e+f x) \log \left (d (e+f x)^m\right )}{x} \, dx}{f}\\ &=b m n x-m x \left (a+b \log \left (c x^n\right )\right )+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-\frac {(b n) \text {Subst}\left (\int \frac {x \log \left (d x^m\right )}{-\frac {e}{f}+\frac {x}{f}} \, dx,x,e+f x\right )}{f^2}\\ &=b m n x-m x \left (a+b \log \left (c x^n\right )\right )+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-\frac {(b n) \text {Subst}\left (\int \left (f \log \left (d x^m\right )-\frac {e f \log \left (d x^m\right )}{e-x}\right ) \, dx,x,e+f x\right )}{f^2}\\ &=b m n x-m x \left (a+b \log \left (c x^n\right )\right )+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-\frac {(b n) \text {Subst}\left (\int \log \left (d x^m\right ) \, dx,x,e+f x\right )}{f}+\frac {(b e n) \text {Subst}\left (\int \frac {\log \left (d x^m\right )}{e-x} \, dx,x,e+f x\right )}{f}\\ &=2 b m n x-m x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (e+f x) \log \left (d (e+f x)^m\right )}{f}-\frac {b e n \log \left (-\frac {f x}{e}\right ) \log \left (d (e+f x)^m\right )}{f}+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}+\frac {(b e m n) \text {Subst}\left (\int \frac {\log \left (1-\frac {x}{e}\right )}{x} \, dx,x,e+f x\right )}{f}\\ &=2 b m n x-m x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (e+f x) \log \left (d (e+f x)^m\right )}{f}-\frac {b e n \log \left (-\frac {f x}{e}\right ) \log \left (d (e+f x)^m\right )}{f}+\frac {(e+f x) \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{f}-\frac {b e m n \text {Li}_2\left (1+\frac {f x}{e}\right )}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 152, normalized size = 1.30 \begin {gather*} \frac {-a f m x+2 b f m n x-b e m n \log (e+f x)-b e m n \log (x) \log (e+f x)+a e \log \left (d (e+f x)^m\right )+a f x \log \left (d (e+f x)^m\right )-b f n x \log \left (d (e+f x)^m\right )+b \log \left (c x^n\right ) \left (e m \log (e+f x)+f x \left (-m+\log \left (d (e+f x)^m\right )\right )\right )+b e m n \log (x) \log \left (1+\frac {f x}{e}\right )+b e m n \text {Li}_2\left (-\frac {f x}{e}\right )}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.27, size = 1762, normalized size = 15.06
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1762\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.38, size = 193, normalized size = 1.65 \begin {gather*} \frac {{\left (\log \left (f x e^{\left (-1\right )} + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-f x e^{\left (-1\right )}\right )\right )} b m n e}{f} - \frac {{\left ({\left (m n - m \log \left (c\right )\right )} b - a m\right )} e \log \left (f x + e\right )}{f} - \frac {b m n e \log \left (f x + e\right ) \log \left (x\right ) + {\left ({\left (f m - f \log \left (d\right )\right )} a - {\left (2 \, f m n - f n \log \left (d\right ) - {\left (f m - f \log \left (d\right )\right )} \log \left (c\right )\right )} b\right )} x - {\left (b f x \log \left (x^{n}\right ) - {\left ({\left (f n - f \log \left (c\right )\right )} b - a f\right )} x\right )} \log \left ({\left (f x + e\right )}^{m}\right ) - {\left (b m e \log \left (f x + e\right ) - {\left (f m - f \log \left (d\right )\right )} b x\right )} \log \left (x^{n}\right )}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \ln \left (d\,{\left (e+f\,x\right )}^m\right )\,\left (a+b\,\ln \left (c\,x^n\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________